<?php

namespace app\admin\model;

use think\Model;

class Orders extends Model
{
    protected $pk='order_id';
    protected $table='lm_orders';
    function goods(){
        return $this->hasOne('Goods','goods_id','goods_id');
    }
}